#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() 
{
    int a, b, n;
    while (scanf("%d", &n) != EOF) 
    {
        for (int a = 0; a < n; a++)
        {
            for (int b = 0; b < n; b++)
            {
                if (a == b || a + b == n - 1)
                    printf("*");
                else
                    printf(" ");
            }
            printf("\n");
        }
    }
    return 0;
}